package gwtappcontainer.server.apps.content;

import gwtappcontainer.shared.apps.content.ContentProp;

import com.googlecode.objectify.annotation.Cache;
import com.googlecode.objectify.annotation.Entity;
import com.googlecode.objectify.annotation.Id;
import com.googlecode.objectify.annotation.Index;

@Entity @Cache
class ContentEntity {
	@Id Long id;
	String html;
	@Index String tag;
	boolean publish;
	
	ContentProp toProp() {
		ContentProp prop = new ContentProp();
		prop.id = id;
		prop.html = html;
		prop.tag = tag;
		prop.publish = publish;
		
		return prop;
	}
}
